import request from '@/utils/request'

// 获取-员工列表
export function getEmployeesListAPI(params) {
  return request({
    methods: 'get',
    url: '/sys/user',
    params
  })
}

// 删除-员工
export function delEmployeesAPI(id) {
  return request({
    url: `/sys/user/${id}`,
    method: 'DELETE'
  })
}
// 新增员工
export function addEmployeesAPI(data) {
  return request({
    url: `/sys/user`,
    method: 'POST',
    data
  })
}

// 批量-新增员工
export function importEmployeeAPI(data) {
  return request({
    url: `/sys/user/batch`,
    method: 'POST',
    data
  })
}
